1bashThis demonstrates character translation using the tr command in Bash, replacing specified characters with others.echo "Hello" | tr 'el' 'x' #Result: Hxxxo echo "Hello" | tr 'el' 'ay' #Result: Hayyoexternal toolstrcharacter translation
2bashThis demonstrates using the tr command to transform text case between uppercase and lowercase.echo "Hello" | tr '[:lower:]' '[:upper:]' #Result: HELLO echo "Hello" | tr '[:upper:]' '[:lower:]' #Result: helloexternal toolstrtext transformationcase conversion
3bashThis demonstrates converting text to uppercase using the tr command.echo "Welcome To Devhints" | tr '[:lower:]' '[:upper:]' #WELCOME TO DEVHINTSexternal toolstrcharacter translationcase conversion
4bashThis demonstrates using the tr command to remove specific characters from a string.echo "Hello" | tr -d "el" #Result: Hoexternal toolstrcharacter deletion